package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {
	//通过用户名查找用户
	// @Select("select * form employee where username=#{username}")
	Employee findByUsername(String username);
	
	List<Employee> findByName(String name);
	
	void save(Employee employee);
	
	Employee findById(String id);
	
	void update(Employee employee);
}
